package day07.Ti;

import java.util.ArrayList;
import java.util.Random;

public class Ti04 {
    public static void main(String[] args) {
        method1();
        int[]add=new int[10];
        Random r=new Random();
        for (int i = 0; i < 10; i++) {
            int a= r.nextInt(100)+ 1;
            add[i]=a;
        }
        ArrayList<Integer> list=new ArrayList<>();
        for (Integer s : list) {
            if (s>=10){
list.add(s);
            }
            System.out.println(list);
        }
    }

    private static void method1() {
        int[]arr=new int[10];
        ArrayList<Integer> list=new ArrayList<>();
        Random r=new Random();
        for (int i = 0; i < 10; i++) {
            int a= r.nextInt(100)+ 1;
           arr[i]=a;
           if (a>=10){
               list.add(a);
           }
        }
        for (Integer s : list) {
            System.out.print(s+" ");
        }
    }
}
